package cn.wubo.beetsql.service.impl;

import cn.wubo.beetsql.entity.DemoTableTem;
import cn.wubo.beetsql.service.IDemoTableTemService;
import org.beetl.sql.core.SQLManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemoTableServiceTemImpl implements IDemoTableTemService {
    @Autowired
    private SQLManager sqlManager;

    @Override
    public List<DemoTableTem> queryUseTemplate(DemoTableTem demoTableTem) {
        return sqlManager.template(demoTableTem);
    }

    @Override
    public int insertUseTemplate(DemoTableTem demoTableTem) {
        return sqlManager.insertTemplate(demoTableTem);
    }

    @Override
    public int updateUseTemplate(DemoTableTem demoTableTem) {
        return sqlManager.updateTemplateById(demoTableTem);
    }
}
